﻿using System.Linq;
using ZBJF.Warranty.Common.Enums;
using ZBJF.Warranty.Model;
using ZBJF.Warranty.Model.ViewModel.BaseQueryModel;
using ZBJF.Warranty.Model.ViewModel.PageActionManager;

namespace ZBJF.Warranty.IBLL
{
    public partial interface ISystemUserService
    {
        SystemUser Login(string userAccount, string password, ApplicationType applicationType, out bool flag);

        SystemUser Load(long id);
        SystemUser Load(ApplicationType applicationType, string userAccount);
        bool IsExist(string userAccount, ApplicationType applicationType, long id = 0);
        IQueryable<SystemUser> GetSystemUserAll();
        IQueryable<SystemUser> GetPagingList(SystemUserModel model, out int total);
        /// <summary>
        /// 根据承保公司iD 获取员工列表
        /// </summary>
        /// <param name="insuranceCompanyId"></param>
        /// <returns></returns>
        IQueryable<SystemUser> GetSystemUserAllByInsuranceCompanyId(long insuranceCompanyId);
    }
}